<div id="links">
	{assign var='link_count' value=$top_links|@count}
	{foreach from=$top_links item='link'}
		<a href="{$PHP_SELF}?action={$link.action}"{if !empty($link.target)} target="{$link.target}"{/if}>{$link.text}</a>{if $link.order_number < $link_count}&nbsp;|&nbsp;{/if}
	{/foreach}
</div>
